FROM xxxxx/java-env:1.0.0
MAINTAINER xxx

COPY lin-server-api/target/lin-server-api-1.1.0.jar /lin-server-api-1.1.0.jar
COPY lin-server-box/lin-box-server/target/lin-box-server-1.1.0.jar /lin-box-server-1.1.0.jar
COPY lin-server-config/lin-config-server/target/lin-config-server-1.1.0.jar /lin-config-server-1.1.0.jar
COPY lin-server-eureka/target/lin-server-eureka-1.1.0.jar /lin-server-eureka-1.1.0.jar
COPY lin-server-message/lin-message-server/target/lin-message-server-1.1.0.jar /lin-message-server-1.1.0.jar
COPY lin-server-user/lin-user-server/target/lin-user-server-1.1.0.jar /lin-user-server-1.1.0.jar


COPY start_cloud.sh /usr/bin/start_cloud.sh
RUN chmod +x /usr/bin/start_cloud.sh
CMD nohup sh -c "start_cloud.sh && java -jar /lin-server-eureka-1.1.0.jar"


#命令文件
#!/bin/sh
nohup java -jar /lin-server-api-1.1.0.jar --spring.profiles.active=cloud > api_server.log &
nohup java -jar /lin-config-server-1.1.0.jar --spring.profiles.active=cloud -> config_server.log &
nohup java -jar /lin-message-server-1.1.0.jar --spring.profiles.active=cloud > message.log &
nohup java -jar /lin-user-server-1.1.0.jar --spring.profiles.active=cloud > user.log &

